import request from '@/utils/request'

// 查询秒杀信息列表
export function listSeckillInfo(query) {
  return request({
    url: '/system/SeckillInfo/list',
    method: 'get',
    params: query
  })
}

// 查询秒杀信息详细
export function getSeckillInfo(seckillId) {
  return request({
    url: '/system/SeckillInfo/' + seckillId,
    method: 'get'
  })
}

// 新增秒杀信息
export function addSeckillInfo(data) {
  return request({
    url: '/system/SeckillInfo',
    method: 'post',
    data: data
  })
}

// 修改秒杀信息
export function updateSeckillInfo(data) {
  return request({
    url: '/system/SeckillInfo',
    method: 'put',
    data: data
  })
}

// 删除秒杀信息
export function delSeckillInfo(seckillId) {
  return request({
    url: '/system/SeckillInfo/' + seckillId,
    method: 'delete'
  })
}
